package com.edu.service.impl;

import com.edu.entity.User;
import com.edu.mapper.UserMapper;
import com.edu.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ProjectName: springboot-project28
 * @Titile: UserServiceImpl
 * @Author: Administrator
 * @Description: 用户业务实现
 */
@Service //业务层注解
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public List<User> getAll() {
        //调用数据访问层接口方法
        List<User> userList = userMapper.getAll();
        //业务判断
        //这个数据是否为空
        return userList;
    }
}
